package com.huawei.appmarket.service.store.awk.card;

import android.content.Context;
import android.view.View;
import android.widget.ImageView;
import androidx.databinding.ViewDataBinding;
import com.huawei.appgallery.foundation.card.base.bean.BaseDistCardBean;
import com.huawei.appgallery.foundation.card.base.card.BaseDistCard;
import com.huawei.appgallery.foundation.ui.framework.cardkit.bean.CardBean;
import com.huawei.hms.common.data.DataBufferSafeParcelable;
import kotlin.Metadata;
import o.cgz;
import o.eqx;
import o.ewm.j;
import o.fsd;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

@Metadata(bv = {1, 0, 3}, d1 = {"\u00004\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\u0018\u00002\b\u0012\u0004\u0012\u00020\u00020\u0001B\r\u0012\u0006\u0010\u0003\u001a\u00020\u0004¢\u0006\u0002\u0010\u0005J\u0016\u0010\b\u001a\b\u0012\u0002\b\u0003\u0018\u00010\t2\u0006\u0010\n\u001a\u00020\u000bH\u0016J\u0010\u0010\f\u001a\u00020\r2\u0006\u0010\u000e\u001a\u00020\u000fH\u0016R\u0010\u0010\u0006\u001a\u0004\u0018\u00010\u0007X\u000e¢\u0006\u0002\n\u0000¨\u0006\u0010"}, d2 = {"Lcom/huawei/appmarket/service/store/awk/card/SmallCloverCard;", "Lcom/huawei/appgallery/foundation/card/base/card/BaseDistCard;", "Landroidx/databinding/ViewDataBinding;", "context", "Landroid/content/Context;", "(Landroid/content/Context;)V", "imageView", "Landroid/widget/ImageView;", "bindCard", "Lcom/huawei/appgallery/foundation/ui/framework/cardframe/card/BaseCard;", "parent", "Landroid/view/View;", "setData", "", "data", "Lcom/huawei/appgallery/foundation/ui/framework/cardkit/bean/CardBean;", "WiseDist_release"}, k = 1, mv = {1, 1, 15})
public final class SmallCloverCard extends BaseDistCard<ViewDataBinding> {
    private ImageView ˋ;

    public SmallCloverCard(@NotNull Context context) {
        fsd.ˊ((Object) context, "context");
        super(context);
    }

    @Nullable
    public cgz<?> ˏ(@NotNull View view) {
        fsd.ˊ((Object) view, "parent");
        ʽ(view);
        this.ˋ = (ImageView) view.findViewById(j.ʽꜟ);
        return this;
    }

    public void ˏ(@NotNull CardBean cardBean) {
        CardBean cardBean2;
        fsd.ˊ((Object) cardBean, DataBufferSafeParcelable.DATA_FIELD);
        super.ˏ(cardBean);
        if (cardBean instanceof BaseDistCardBean) {
            cardBean2 = cardBean;
        } else {
            cardBean2 = null;
        }
        BaseDistCardBean baseDistCardBean = (BaseDistCardBean) cardBean2;
        if (baseDistCardBean != null) {
            ImageView imageView = this.ˋ;
            if (imageView != null) {
                imageView.setContentDescription(baseDistCardBean.v_());
            }
            eqx.ˏ(this.ˋ, baseDistCardBean.ॱˌ(), "image_default_icon");
        }
    }
}
